﻿<Application x:Class="Black.Minecraft.Editor.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:convert="clr-namespace:Black.Minecraft.Editor.Converters"
             xmlns:vm="clr-namespace:Black.Minecraft.Editor.ViewModels"
             DispatcherUnhandledException="OnDispatcherUnhandledException"
             StartupUri="Views\MainView.xaml">

    <Application.Resources>
        <ResourceDictionary>

            <!--  Création des converters  -->

            <convert:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <convert:ByteToStringConverter x:Key="ByteToStringConverter" />
            <convert:DateToStringConverter x:Key="DateToStringConverter" />
            <convert:DecimalToStringConverter x:Key="DecimalToStringConverter" />
            <convert:DoubleToStringConverter x:Key="DoubleToStringConverter" />
            <convert:IntegerToStringConverter x:Key="IntegerToStringConverter" />
            <convert:LongToStringConverter x:Key="LongToStringConverter" />
            <convert:ShortToStringConverter x:Key="ShortToStringConverter" />
            <convert:StringToLowerCaseConverter x:Key="StringToLowerCaseConverter" />
            <convert:StringToUpperCaseConverter x:Key="StringToUpperCaseConverter" />
            <convert:StringTruncateConverter x:Key="StringTruncateConverter" />

            <!--  Merge des définitions  -->

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </Application.Resources>
</Application>
